<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN">
<html><head><meta http-equiv="Content-Type" content="text/html;charset=iso-8859-1">
<title>[Generic Component Framework v3] TicTacToe - Example application for GCF&#39;s IPC module.</title>
<link href="doxygen.css" rel="stylesheet" type="text/css">
<!--link href="tabs.css" rel="stylesheet" type="text/css"-->
</head><body>
 <div id="wrapper">
    <div id="logo_box">
        <a class="img_link" href="https://github.com/pnudupa/gcf" target="_blank" ><img style="float:left;margin-left:10px;margin-top:5px;margin-bottom:5px;"src="header_gcf_logo.jpg" alt="GCF LOGO"/></a>
        <a class="img_link" href="https://www.vcreatelogic.com/" target="_blank" ><img style="float:right;margin-right:10px; margin-top: 30px;" src="header_vcl_logo.jpg" alt="VCL LOGO"/></a>
        <div style="clear:both"></div>
    </div>
    <div class="nav">
        <ul>
            <li class="selectedpage">
                <a class="a-home" href="index.html" >
                    <span>Home</span>
                </a>
            </li>
            <li>
                <a class="a-classes " href="classes.html">
                    <span>All Classes</span>
                </a>
            </li>
            <li>
                <a class="a-home " href="gcf_modules.html">
                    <span>Modules</span>
                </a>
            </li>
            <li>
                <a class="a-home " href="gcf_guides_and_videos.html">
                    <span>Guides & Videos</span>
                </a>
            </li>
            <li>
                <a class="a-home " href="gcf_tools_and_inbuilt_components.html">
                    <span>Tools & Components</span>
                </a>
            </li>
        </ul>
    </div>
    <div id="main-content">
        <div class="inside">
        <div>
<!-- Generated by Doxygen 1.8.16 -->
</div><!-- top -->
<div class="PageDoc"><div class="header">
  <div class="headertitle">
<div class="title">TicTacToe - Example application for GCF's IPC module. </div>  </div>
</div><!--header-->
<div class="contents">
<div class="toc"><h3>Table of Contents</h3>
<ul><li class="level1"><a href="#gcf_tictactoe_0">Launching TicTacToe</a></li>
<li class="level1"><a href="#gcf_tictactoe_1">Playing the game.</a></li>
</ul>
</div>
<div class="textblock"><p>TicTacToe is a simple game application which showcases the usage of IPC module. This page explains how to run the example and play the game.</p>
<h1><a class="anchor" id="gcf_tictactoe_0"></a>
Launching TicTacToe</h1>
<p>Launching TicTacToe is very simple. Open the example in the QtCreator and run the application otherwise go to <code>Binary/Demos</code> folder inside <code>GCF3</code> and then run the application.</p>
<dl class="section note"><dt>Note</dt><dd>Before running the application please make sure that the <code>GCF3/Binary</code> is in your path variable.</dd></dl>
<h1><a class="anchor" id="gcf_tictactoe_1"></a>
Playing the game.</h1>
<p>To play the game you need to open two instances of this application. You can launch the applications</p>
<ul>
<li>on same computer. </li>
<li>or on different computers within the same LAN.</li>
</ul>
<p>Once both has been started, they figureout each other using IPC calls and both of the application becomes enabled. Now any of the user can start the game by clicking on the cell inside the application. Once a user marks his choice the same is shown in the other user's game window as marked by the opponent. Player turns comes alternatively and a user wins if 3 of his marks comes on the same row, column or in diagonal.</p>
<div class="image">
<img src="tic_tac_toe.png" alt=""/>
</div>
 </div></div><!-- contents -->
</div><!-- PageDoc -->
</div>
</div>
</div>
<div class="footer_content">
<table width="100%" class="footer">
<tr>
<td align="left" width="50%">Copyright &copy; 2013-2019,
 <a class="el" href="http://www.vcreatelogic.com" target="_black">VCreate Logic Private Limited</a></td>
<td align="right" width="50%"><a class="el" href="http://www.vcreatelogic.com/products/gcf" target="_black">GCF - Generic Component Framework</a></td>
</tr>
</table>
</div>
</div>
</body>
</html>
